/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.palette.events;

/**
 *
 * @author Mr.Sam
 */
import java.util.EventObject;
import fr.ove.palette.*;

/**
* The event to send to all objects that implements the interface PaletteListener
* and which want to execute the control actions.
*
* @author © 1999 DIRAT Laurent
* @version 1.0  18/09/1999
*/
public class PaletteEvent extends EventObject {
    /**
    * The information to transmit to the listener of the palette.
    */
    private PaletteInfo paletteInfo;

    /**
    * The constructor.
    * @param src the object which produces this event.
    */
    public PaletteEvent(Object src) {
        super(src);
    }

    /**
    * Sets the information to transmit to the listener of the palette
    * @param data the information to transmit.
    */
    public void setPaletteInfo(PaletteInfo paletteInfo) {
        this.paletteInfo = paletteInfo;
    }

    /**
    * Returns the information associated with the event.
    */
    public PaletteInfo getPaletteInfo() {
        return paletteInfo;
    }
}
